#pragma once
#include "afxwin.h"
#include "afxcmn.h"
#include "TEX0_SDK.h"

class CTEX0_Sheet;

// CTEX0_AddrBook dialog

class CTEX0_AddrBook : public CDialogEx
{
	DECLARE_DYNAMIC(CTEX0_AddrBook)

public:
	CTEX0_AddrBook(CWnd* pParent = NULL);   // standard constructor
	virtual ~CTEX0_AddrBook();

// Dialog Data
	enum { IDD = IDD_DLG_ADDRESS_BOOK };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()

private:
	CListCtrl m_addressBook;
	vector<SiteAddrRecord> m_siteAddrRecords;
	vector<SiteAddrRecord> m_selSiteAddress;
	vector <char *>  m_nameList;

public:
	virtual BOOL OnInitDialog();
	void GetSelAddrRecord(vector<SiteAddrRecord> &selSiteAddress);
	afx_msg void OnBnClickedButtonRefreshAddressBook();
	afx_msg void OnBnClickedOk();
	afx_msg void OnNMClickListAddressBook(NMHDR *pNMHDR, LRESULT *pResult);
};
